package com.muyu.danmo.domain;

import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.List;


/**
 * 培训班点赞对象 danmo_training_likes
 *
 * @author yangle
 * @date 2024-10-12
 */
@Data
@AllArgsConstructor
@NoArgsConstructor

public class DanmoTrainingLikes extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 点赞记录的唯一标识 */
    private Long id;

    /** 外键，关联到培训班课程表 */
    @Excel(name = "外键，关联到培训班课程表")
    private Long trainingInformationId;

    /** 外键，关联到用户表 */
    @Excel(name = "外键，关联到用户表")
    private Long userId;

    /** 培训班详情信息 */
    private List<DanmoTrainingInformation> danmoTrainingInformationList;

//    public void setId(Long id)
//    {
//        this.id = id;
//    }
//
//    public Long getId()
//    {
//        return id;
//    }
//    public void setTrainingInformationId(Long trainingInformationId)
//    {
//        this.trainingInformationId = trainingInformationId;
//    }
//
//    public Long getTrainingInformationId()
//    {
//        return trainingInformationId;
//    }
//    public void setUserId(Long userId)
//    {
//        this.userId = userId;
//    }
//
//    public Long getUserId()
//    {
//        return userId;
//    }
//
//    public List<DanmoTrainingInformation> getDanmoTrainingInformationList()
//    {
//        return danmoTrainingInformationList;
//    }
//
//    public void setDanmoTrainingInformationList(List<DanmoTrainingInformation> danmoTrainingInformationList)
//    {
//        this.danmoTrainingInformationList = danmoTrainingInformationList;
//    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("trainingInformationId", getTrainingInformationId())
            .append("userId", getUserId())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .append("danmoTrainingInformationList", getDanmoTrainingInformationList())
            .toString();
    }
}
